package com.zb.text;

import java.util.List;

import com.zb.entity.Mr;
import com.zb.entity.User;
import com.zb.service.MrService;
import com.zb.service.UserService;
import com.zb.serviceimpl.MrServiceImpl;
import com.zb.serviceimpl.UserServiceImpl;
import com.zb.util.PageUtil;

public class text {
	public static void main(String[] args) {
	UserService u=new UserServiceImpl();
	int index = 1;
	
	PageUtil<User> page =u.getUserPage(index);
	List<User> list = page.getData();
	for (User person : list) {
		System.out.println(person);
	}
//		MrService m=new MrServiceImpl();
//		int index=1;
//		String carnum=null;
//		PageUtil<Mr> page =m.getMrPage(index, carnum);
//		List<Mr> list = page.getData();
//		for (Mr person : list) {
//			System.out.println(person);
//		}
}
}
